package com.源码分析.优化;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import reactor.core.publisher.Flux;
import reactor.core.scheduler.Schedulers;

public class Demo2 {

	private static Logger log = LoggerFactory.getLogger(Demo2.class);

	public static void main(String[] args) throws InterruptedException {
		Flux.just(1)
			.publishOn(Schedulers.elastic())
			.map(x -> x + "")
			.subscribe(x -> log.info(x));
		Thread.sleep(10000000);
	}

}
